package com.ruoyi.project.channel.vwPlatformDayStat.service;

import java.math.BigDecimal;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.channel.vwPlatformDayStat.mapper.VwPlatformDayStatMapper;
import com.ruoyi.project.channel.vwPlatformDayStat.domain.VwPlatformDayStat;
import com.ruoyi.project.channel.vwPlatformDayStat.service.IVwPlatformDayStatService;
import com.ruoyi.common.utils.text.Convert;

/**
 * VIEW 服务层实现
 * 
 * @author zero
 * @date 2019-05-19
 */
@Service
public class VwPlatformDayStatServiceImpl implements IVwPlatformDayStatService 
{
	@Autowired
	private VwPlatformDayStatMapper vwPlatformDayStatMapper;

	/**
     * 查询VIEW信息
     * 
     * @param sumCash VIEWID
     * @return VIEW信息
     */
    @Override
	public VwPlatformDayStat selectVwPlatformDayStatById(BigDecimal sumCash)
	{
	    return vwPlatformDayStatMapper.selectVwPlatformDayStatById(sumCash);
	}
	
	/**
     * 查询VIEW列表
     * 
     * @param vwPlatformDayStat VIEW信息
     * @return VIEW集合
     */
	@Override
	public List<VwPlatformDayStat> selectVwPlatformDayStatList(VwPlatformDayStat vwPlatformDayStat)
	{
	    return vwPlatformDayStatMapper.selectVwPlatformDayStatList(vwPlatformDayStat);
	}
	
    /**
     * 新增VIEW
     * 
     * @param vwPlatformDayStat VIEW信息
     * @return 结果
     */
	@Override
	public int insertVwPlatformDayStat(VwPlatformDayStat vwPlatformDayStat)
	{
	    return vwPlatformDayStatMapper.insertVwPlatformDayStat(vwPlatformDayStat);
	}
	
	/**
     * 修改VIEW
     * 
     * @param vwPlatformDayStat VIEW信息
     * @return 结果
     */
	@Override
	public int updateVwPlatformDayStat(VwPlatformDayStat vwPlatformDayStat)
	{
	    return vwPlatformDayStatMapper.updateVwPlatformDayStat(vwPlatformDayStat);
	}

	/**
     * 删除VIEW对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteVwPlatformDayStatByIds(String ids)
	{
		return vwPlatformDayStatMapper.deleteVwPlatformDayStatByIds(Convert.toStrArray(ids));
	}
	
}
